{include file="/public/header" /}
{include file="/public/navbar" /}
<div class="container">
    <div class="page form_page js_show" tabindex="-1">
        <form name="form" method="post" class="weui-form" style="padding-top:20px;width:100%;">
            <div class="weui-form__control-area" style="margin-top:0;">
                <div class="weui-cells__group weui-cells__group_form">
                    <div class="weui-cells__title">个人资料</div>
                    <div class="weui-cells">
                        <label for="realname" class="weui-cell weui-cell_active weui-cell_readonly" wah-hotarea="touchend">
                            <div class="weui-cell__hd"><span class="weui-label">花名</span></div>
                            <div class="weui-cell__bd"><input type="text" class="weui-input" disabled value="{$_G['partner']['nickname'] ?? ''}" maxlength="20"></div>
                        </label>
                        <label for="realname" class="weui-cell weui-cell_active" wah-hotarea="touchend">
                            <div class="weui-cell__hd"><span class="weui-label require">手机号</span></div>
                            <div class="weui-cell__bd"><input type="text" name="mobile" class="weui-input" value="{$_G['partner']['mobile'] ?? ''}" maxlength="11" placeholder="填写您的手机号"></div>
                        </label>
                    </div>
                    <div class="weui-cells__title" style="margin-top:30px;">提现信息</div>
                    <div class="weui-cells">
                        <label for="realname" class="weui-cell weui-cell_active">
                            <div class="weui-cell__hd"><span class="weui-label require">姓名</span></div>
                            <div class="weui-cell__bd"><input id="realname" name="realname" class="weui-input" value="{$_G['partner']['realname'] ?? ''}" maxlength="20" placeholder="填写您的姓名"></div>
                        </label>
                        <label for="realname" class="weui-cell weui-cell_active" wah-hotarea="touchend">
                            <div class="weui-cell__hd"><span class="weui-label require">开户银行</span></div>
                            <div class="weui-cell__bd"><input type="text" name="bankname" class="weui-input" value="{$_G['partner']['bankname'] ?? ''}" maxlength="50" placeholder="填写您的开户银行"></div>
                        </label>
                        <label for="realname" class="weui-cell weui-cell_active" wah-hotarea="touchend">
                            <div class="weui-cell__hd"><span class="weui-label require">银行账户</span></div>
                            <div class="weui-cell__bd"><input type="text" name="bankac" class="weui-input" value="{$_G['partner']['bankac'] ?? ''}" maxlength="50" placeholder="填写您的银行账户"></div>
                        </label>                        
                    </div>
                </div>
            </div>
            
            <div class="weui-form__opr-area">
                <!-- weui-btn_disabled aria-disabled="true"-->
                <!--{if ($_G['_m_'] ?? '') == 'center' AND ($openid ?? '')}-->
                <input type="hidden" name="openid" value="{$openid ?? ''}">
                <!--{/if}-->
                <a role="button" class="weui-btn weui-btn_primary" wah-hotarea="click" onclick="return Sys.DForm(this);">保存提交</a>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
Sys.DForm = function(o){
    let form = $(o).parents('form');
    let p = {
        //"nickname" : form.find('input[name="nickname"]').val(),
        'mobile'   : form.find('input[name="mobile"]').val(),
        'realname' : form.find('input[name="realname"]').val(),
        'bankname' : form.find('input[name="bankname"]').val(),
        'bankac'   : form.find('input[name="bankac"]').val(),
    }
    /*
    if (!Sys.rule('*',p['nickname'])) {
        weui.topTips('填写您的花名',1500);return false;
    }
    */
    if (!Sys.rule('mobile',p['mobile'])) {
        weui.topTips('填写您的手机号',1500);return false;
    } else if (!Sys.rule('*',p['realname'])) {
        weui.topTips('填写您的姓名',1500);return false;
    } else if (!Sys.rule('*',p['bankname'])) {
        weui.topTips('填写您的开户银行',1500);return false;
    } else if (!Sys.rule('key',p['bankac'])) {
        weui.topTips('填写您的银行账户',1500);return false;
    }
    form.submit();
    return true;
}
$(document).ready(function (){

});
</script>
{include file="/public/footer" /}